package com.designMode.builder;

public class SimpleClient {
    public static void main(String[] args) {
        //创建建造者
        AbsBuilder builderA = new SimpleBuilder();
        //建造A产品
        builderA.setPart1()
                .setPart2()
                .builderProduct()
                .doSomething();
        //创建建造者
        AbsBuilder builderB = new SimpleBuilder();
        //建造B产品
        builderB.setPart2()
                .setPart3()
                .builderProduct()
                .doSomething();
    }
}
